# -*- coding: utf-8 -*-
"""
Module Description:定义程序中的所有打印方法
"""
from __future__ import print_function

import time
from common import server_config


def echo(*args):
    """
    统一的打印方法
    """
    # 非调试模式下不打印
    # if not server_config.is_debug:
    #     return

    curtime = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(time.time()))
    try:
        print(curtime, *args)
    except:
        pass
